﻿@using TinyMoocSite.ViewModels
@model BaseViewModel

<!DOCTYPE html>

<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Content/GlobalStyle.css" rel="stylesheet" />
    @RenderSection("ExtensionStyle", false)
    <title>@ViewBag.Title</title>
</head>
<body>
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="/">Tiny MOOC</a>
            </div>
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" 
                           aria-haspopup="true" aria-expanded="false">
                            @Model.FullName (@Model.LicenseId)
                        <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="/Default/UserInfo">个人信息</a></li>
                            <li><a href="/Default/ChangePassword">修改密码</a></li>
                            <li><a href="/Default/Logout">退出</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container">
        @RenderSection("FullContainer")
    </div>

    <footer class="footer">
        <div class="container">
            <p class="text-muted">&copy; @DateTime.Now.Year.ToString() 软件工程小组，保留所有权利。</p>
        </div>
    </footer>
    
    <script src="~/Scripts/jquery-2.2.3.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    @RenderSection("ExtensionScript", false)
</body>
</html>
